package top.dbpanda.cmsjpa.learn.thread.juc;

/**
 * @author 20018954
 */
public class TestSanatorium {
    public static void main(String[] args) {
        try {
            Natatorium natatorium = new Natatorium();
            Thread thread = new Thread(natatorium);
            thread.start();
            natatorium.addSwimmer("zs", 30);
            natatorium.addSwimmer("ls", 45);
            natatorium.addSwimmer("ww", 60);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
